//
//  tooles.h
//  huoche
//
//  Created by kan xu on 11-1-22.
//  Copyright 2011 paduu. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum
{
    ENumServerURLPujiao = 1,
    ENumServerURLGaojiao = 2,
}ServeURL;

@interface tooles : NSObject

+(void)showSelectMsgBoxWithTitle:(NSString*)title andMsg:(NSString*)msg andDelegate:(id<UIAlertViewDelegate>)target;
+(void)showInputMsgBoxWithTitle:(NSString*)title andMsg:(NSString*)msg andDelegate:(id<UIAlertViewDelegate>)target;
+(void)showAlertMsgBoxWithTitle:(NSString*)title andMsg:(NSString*)msg;
+(void)showAlertMsgDetailedWithTitle:(NSString*)title andMsg:(NSString*)msg;
+(UIImage*)getImageByColor:(UIColor*)aColor;
+ (UIViewController *)defaultViewControllerWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil;
+ (NSString *)defaultViewControllerWithNibName:(NSString *)nibNameOrNil;
+(float)DeviceVersion;
+(UIImage*)grayImage:(UIImage *)sourceImage;

+(NSString *)wubiSentenceByChara:(NSString*)aCha;

+(int)getPlistValueForKey:(NSString*)aStr;
+(void)setPlistValue:(int)aValue ForKey:(NSString*)aStr;

+(int)getIntFromData:(NSData*)aData;

@end
